<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/11/20
  Time: 20:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="/SpringMVC04/js/jquery.js"></script>
</head>
<body>
        查询了用户的详细信息
        <%--
            form表单 发DEDLETE/PUT类型请求
               1.把表单的请求方式 改为 POST
               2.表单中 添加一个 隐藏域 name+"_method" value="delete/put"
               3.web.xml中 添加一个 HiddenHttpMethod的 过滤器
        --%>
        删除
        <form action="/SpringMVC04/user/1" method="POST">
            <input type="hidden" name="_method" value="delete">
            <input type="submit" value="删除">
        </form>

        <form action="/SpringMVC04/user/1" method="POST">
            <input type="hidden" name="_method" value="put">
            用户名 <input type="text" name="username"> <br>
            密码 <input type="text" name="password"> <br>
            性别 <input type="text" name="userSex"> <br>
            年龄 <input type="text" name="userAge"> <br>
            <input type="submit" value="修改">
        </form>
</body>
</html>
